/**
 * Created by yongwang on 2015/06/15.
 */
module.exports = function (app) {
    var goods = require('../../controllers/backoffice/backOffice-scoreShop-controller');
    logger.debug("load the backoffice scoreShop-route module....");

    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/score/getScoreShopList/:page', goods.getScoreShopList);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/score/changeStatus', goods.changeStatus);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/score/addOneGoods', goods.addOneGoods);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/score/searchGoods/:name', goods.searchGoods);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/score/searchValue', goods.searchValue);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/score/getCommunityScoreList/:communityName/:page', goods.getCommunityScoreList);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/score/searchExchangeGoods/:name', goods.searchExchangeGoods);
};